package com.chainyoung.component_tmperson.entity;

public class DebitRepayRecord {


    /**
     * id : 1
     * loans_log_id : 3
     * user_id : 12
     * principal : 833.33333300
     * interests : 112.00000000
     * amount : 945.33333300
     * used_interests : 9166.66666700
     * repayment_method : system
     * addtime : 1540526400
     * repayment_index : 1
     */

    private String id;
    private String loans_log_id;
    private String user_id;
    private String principal;
    private String interests;
    private String amount;
    private String used_interests;
    private String repayment_method;
    private long addtime;
    private long loans_time;//贷款时间
    private int repayment_index;
    private int total_period;//总期数

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLoans_log_id() {
        return loans_log_id;
    }

    public void setLoans_log_id(String loans_log_id) {
        this.loans_log_id = loans_log_id;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getPrincipal() {
        return principal;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public String getInterests() {
        return interests;
    }

    public void setInterests(String interests) {
        this.interests = interests;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getUsed_interests() {
        return used_interests;
    }

    public void setUsed_interests(String used_interests) {
        this.used_interests = used_interests;
    }

    public String getRepayment_method() {
        return repayment_method;
    }

    public void setRepayment_method(String repayment_method) {
        this.repayment_method = repayment_method;
    }

    public long getAddtime() {
        return addtime;
    }

    public void setAddtime(long addtime) {
        this.addtime = addtime;
    }

    public int getRepayment_index() {
        return repayment_index;
    }

    public void setRepayment_index(int repayment_index) {
        this.repayment_index = repayment_index;
    }

    public int getTotal_period() {
        return total_period;
    }

    public void setTotal_period(int total_period) {
        this.total_period = total_period;
    }

    public long getLoans_time() {
        return loans_time;
    }

    public void setLoans_time(long loans_time) {
        this.loans_time = loans_time;
    }

    public String getRepayMethodStr() {
        switch (repayment_method) {
            case "system":
                return "云钱包自动还款";
            case "user":
                return "提前主动还款";
        }
        return "";
    }
}
